package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商家商品对象 company_goods
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
public class CompanyGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private Double cunit;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String categroyId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categroyName;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 条码 */
    @Excel(name = "条码")
    private String code;

    /** 保质期 */
    @Excel(name = "保质期")
    private String life;

    /** 排序 */
    @Excel(name = "排序")
    private Double sort;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long companyId;

    /** 库存 */
    @Excel(name = "库存")
    private Double stock;

    /** 标识不在库存表里的商品 **/
    private String nostock;
    /**
     * 是否不分页，如果传该值，则不分页
     */
    private String noPage;


    /** 商铺ID */
    private int shopId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setCunit(Double cunit) 
    {
        this.cunit = cunit;
    }

    public Double getCunit() 
    {
        return cunit;
    }

    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }

    public void setCategroyId(String categroyId) 
    {
        this.categroyId = categroyId;
    }

    public String getCategroyId() 
    {
        return categroyId;
    }

    public void setCategroyName(String categroyName) 
    {
        this.categroyName = categroyName;
    }

    public String getCategroyName() 
    {
        return categroyName;
    }

    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setLife(String life) 
    {
        this.life = life;
    }

    public String getLife() 
    {
        return life;
    }

    public void setSort(Double sort) 
    {
        this.sort = sort;
    }

    public Double getSort() 
    {
        return sort;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setStock(Double stock) 
    {
        this.stock = stock;
    }

    public Double getStock() 
    {
        return stock;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public String getNoPage() {
        return noPage;
    }

    public void setNoPage(String noPage) {
        this.noPage = noPage;
    }

    public String getNostock() {
        return nostock;
    }

    public void setNostock(String nostock) {
        this.nostock = nostock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("unit", getUnit())
            .append("cunit", getCunit())
            .append("ctime", getCtime())
            .append("categroyId", getCategroyId())
            .append("categroyName", getCategroyName())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("imageUrl", getImageUrl())
            .append("code", getCode())
            .append("life", getLife())
            .append("sort", getSort())
            .append("companyId", getCompanyId())
            .append("stock", getStock())
            .toString();
    }
}
